﻿
namespace Inovout.NumberGenerator
{
    public class TextFunction:NumberFunction
    {
        public TextFunction()
            : this(new string[]{"Text"})
        { 
        }
        public TextFunction(string[] arguments)
            : base("Text")
        {
            text = arguments[0];
        }
        private string text;
        public string Text
        {
            get { return text; }
            set { text = value;}
        }

        public override string[] Arguments
        {
            get { return new string[]{text}; }
        }

        public override string Build()
        {
            return text;
        }
    }
}
